package com.zxs.product.service;

import parm.*;
import pojo.Product;
import to.OrderToProduct;
import utils.R;

import java.util.List;

public interface ProductService {
    R promo(String categoryName);


    R hots(ProductHotParam productHotParam);

    R clist();

    R bycategory(CategoryParamInteger categoryParamInteger);

    R detail(Integer productID);

    R collectList(List<Integer> productIds);


    List<Product> cartList(List<Integer> productIds);

    void subNumber(List<OrderToProduct> orderToProductList);

    R getProducts(PageParam pageParam);

    R update(Product product);

    R adminSave(ProductSaveParam productSaveParam);

    R adminDelete(Integer productId);

    R search(ProductParamsSearch productParamsSearch);
}
